﻿using WindowsLive.Writer.Api;

namespace DotNetBurner.LiveWriterPlugIn
{
    public class Settings
    {
        private readonly IProperties _properties;

        public Settings(IProperties properties)
        {
            _properties = properties;
        }

        public bool EnableDotNetBurner
        {
            get
            {
                return _properties.GetBoolean("enableDotNetBurner", true);
            }
            set
            {
                _properties.SetBoolean("enableDotNetBurner", value);
            }
        }

        public bool EnableDotNetKicks
        {
            get
            {
                return _properties.GetBoolean("enableDotNetKicks", false);
            }
            set
            {
                _properties.SetBoolean("enableDotNetKicks", value);
            }
        }

        public bool EnableDotNetShoutOut
        {
            get
            {
                return _properties.GetBoolean("enableDotNetShoutOut", false);
            }
            set
            {
                _properties.SetBoolean("enableDotNetShoutOut", value);
            }
        }

        public bool EnableWebDevVote
        {
            get
            {
                return _properties.GetBoolean("enableWebDevVote", false);
            }
            set
            {
                _properties.SetBoolean("enableWebDevVote", value);
            }
        }
    }
}
